Repository navigation
Conversation
…/cslib into single-tape-turing-machines
Add encodedPos_last_child_succ lemma to TapeView.lean proving that at the rightEnd of the last child, moving one position right reaches the parent's rightEnd position. Use this to prove the ¬h_next branch of right_eval_struct in Navigation.lean. Also prove h_path and h_head in the path=[] branch. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add encodedPos_next_sibling_succ lemma to TapeView.lean proving that at the rightEnd of a non-last child, moving one position right reaches the next sibling's leftEnd position. Use this to prove the h_next=true branch of right_eval_struct. The only remaining sorry in right_eval_struct is the root rightEnd case (path=[], headPos=rightEnd), which depends on ofBiTape? (sorry'd). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Extract sum_map_enc_length_take_succ as reusable helper lemma - Add toBiTape_move_right_eq to eliminate repeated show/rw pattern - Inline h_move/h_data/h_enc into single h_update step in right_eval_struct - Remove redundant comments and combine simp steps - Net reduction of ~48 lines Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Add HeadPos.eq_rightEnd_of_ne_leftEnd simp lemma - Add toBiTape_comp_update_move_right combining two rewrites - Delete unused right_of_leftEnd (redundant with right_eval_struct) - Use new lemmas to simplify right_eval_struct branches Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Fix build.
Remove the requirement to provide a decoding function.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.